<?php
/**
 * Created by PhpStorm.
 * User: 64423
 * Date: 2018/10/11
 * Time: 14:41
 */

namespace app\shop\validate;


use think\Validate;

class UserLevel extends Validate
{
    protected $rule = [
        'level_name' => 'require',
        'rate' => 'require|number|between:1,100'
    ];

    protected $message = [
        'level_name.require' => '请输入会员名称',
        'rate.require' => '请输入折扣',
        'rate.number' => '折扣必须为数字',
        'rate.between' => '折扣必须在1到100之间'
    ];
}